﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;

namespace Client
{
    static class ClientCore
    {
        public static void Send(string message, string hostname = "localhost", int port = 13)
        {
            TcpClient tc = new TcpClient(hostname, port);
            NetworkStream stream = tc.GetStream();
            byte[] byteMessage = Encoding.ASCII.GetBytes(message);
            stream.Write(byteMessage, 0, byteMessage.Length);
            stream.Close();
            tc.Close();
        }
    }
}
